package com.jan.l3;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

public class TabWindow
    extends ApplicationWindow
{

  public TabWindow(Shell parentShell)
  {
    super(parentShell);
    // TODO Auto-generated constructor stub
  }
  @Override
  protected Control createContents(Composite parent)
  {
//    Composite com=new Composite(parent,SWT.NONE);
//    TabFolder folder=new TabFolder(parent,SWT.NONE);
//    TabItem item1 = new TabItem(folder, SWT.NONE); 
//    item1.setText("Tab Label");
//    TabItem item2 = new TabItem(folder, SWT.NONE); 
//    item2.setText("Tab Labe2");
    TabContainer con=new TabContainer(parent);
    return parent;
  }

  /**
   * TODO
   *
   */
  public static void main(String[] args)
  {
    TabWindow cv = new TabWindow(null);
    cv.setBlockOnOpen(true);
    cv.open(); 
    Display.getCurrent().dispose();

  }

}
